<?php

namespace App\Http\Model;

use Illuminate\Database\Eloquent\Model;

class Home_user extends Model
{
    //
    //此模型关联的数据表
    protected $table = 'sad_home_user';

    //    表的主键
    public $primaryKey = 'id';
    //不更新created_at  updated_at字段
    public $timestamps = false;
    public $guarded = [];

    // 对商品板块列表一对多
	// 此表为主表1
    // public function home_user()
    // {
    // 	return $this->hasMany('App\Http\Model\','uid','id')->orderBy('ctime','desc');
    // }

    public function fishpond()
    {
        return $this->hasMany('App\Http\Model\FishPond','uid','id');
    }
    
    public function home_user1()
    {
         return $this->hasMany('App\Http\Model\Order','uid','id');
    }

    public function home_user2()
    {
         return $this->hasMany('App\Http\Model\Order','rid','id');
    }
}
